Safe mode is triggered by setting the TRILIUM_SAFE_MODE environment
variable to a truthy value, usually 1.
In each artifact there is a trilium-safe-mode.sh (or .bat)
script to enable it.
What it does:
customWidget launcher types in app/widgets/containers/launcher.js.mobileStartup or frontendStartup scripts.backendStartup, hourly, daily scripts
and checks for the hidden subtree.